#include "Config.h"
#include "ConfigScript.h"
#include "Cfg.h"

ConfigScript::ConfigScript( Cfg * cfg )
{
	class_add<Cfg>("Cfg");
	class_def<Cfg>("setId", &Cfg::setId);
	class_def<Cfg>("setFree", &Cfg::setFree);
	class_def<Cfg>("setTcpPort", &Cfg::setTcpPort);
	class_def<Cfg>("setHostAddress", &Cfg::setHallAddress);
	class_def<Cfg>("setDataDatabase", &Cfg::setDataDatabase);
	class_def<Cfg>("setPlatDatabase", &Cfg::setPlatDatabase);
	class_def<Cfg>("setObjectDatabase", &Cfg::setObjectDatabase);
	class_def<Cfg>("setPlayer1Mjs", &Cfg::setPlayer1Mjs);
	class_def<Cfg>("setPlayer2Mjs", &Cfg::setPlayer2Mjs);
	class_def<Cfg>("setPlayer3Mjs", &Cfg::setPlayer3Mjs);
	class_def<Cfg>("setPlayer4Mjs", &Cfg::setPlayer4Mjs);
	set("cfg", cfg);
}
